package com.yangrui.app.controller;

import com.yangrui.app.entity.VideoBanner;
import com.yangrui.app.service.VideoBannerService;
import com.yangrui.app.util.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/v1/video-banner")
@Api(value = "视频轮播图接口", tags = "视频轮播图接口")
public class VideoBannerController {
    @Autowired
    private VideoBannerService videoBannerService;

    @GetMapping("/list")
    @ApiOperation(value = "获取视频轮播图列表", notes = "获取视频轮播图列表")
    public Result list() {
        List<VideoBanner> list = videoBannerService.list();
        return Result.ok(list);
    }


}
